:root {
    --timeline-truck-load-height: 1.75rem;
    --timeline-truck-label-height: 1.75rem;
    --timeline-truck-row-lower-margin: 1rem;
    --timeline-truck-row-upper-margin: 0rem;
    --timeline-truck-labels-width: 14rem;
    /*14rem is the width for when the row labels are showing, 8rem is when the row labels are not showing (rec showing vs not)*/

    --load-color-planned: #60b1ff;
    /* 66a4e0; */
    /*61a3e2;*/
    /* 66a4e0; */
    /*shiny 7bbeff*/
    /* //#b2f8ff; */
    --load-color-dispatched: #3e7dd8;
    /* 3e8cd8; */
    /* //#64B5F6; */
    --load-color-started:#0851bb;
    /* 0863BB; */
     /* #064887; */
    /* original started color #1976D2; */
    --load-color-recommended: rgb(226, 128, 0);
    --load-color-deadhead: rgb(145, 145, 145);
    --load-color-ptao: rgba(13, 71, 161, 0.3);
;

    --timeline-border: 2px solid #1c1c1c;
    /* #d07906; */
    /* rgb(226, 128, 0); */
}

/*Sidebar*/
.timeline-zoom-button {
    padding: 0.25rem;
    height: 2rem;
    width: 2rem;
    font-size: 20px;
}

input[type=range].slider {
    margin: 0rem 0 !important;
    width: 156px;
}


/* 
.timeline-checkbox
{
  font-size: .8em;
  display:flex;
  margin-bottom: 0 !important;
} */

.filter-tags>.tag {
    margin: .1rem;
}

#timeline-filter-display {
    width: 100%;
}

.timeline-filter {
    font-size: .8em !important;
    padding: 0;
    height: 2rem !important;
    min-height: 2rem !important;
    color: black !important;
}


/*
.filter-modal > .modal-card
{
    height: 80%;
    width: 40%; 
}
*/

.hover-lighten:hover {
    filter: brightness(1.2);
}

.filter-modal .modal-card-body {
    justify-content: space-between !important;
    gap: 1rem;
}

.filter-display {
    display: flex;
    gap: 5px;
    width: auto;
    flex-wrap: wrap;
}

.select-control {
    width: 100% !important;
}

#timeline-toolbar-line {
    position: absolute;
    height: 100%;
    background-color: #4a4a4a;
    width: 3px;
}

.preset-title-icon {
    /* width: 1.5rem; */
    height: 1.5rem;
    /* margin-right: .25rem; */
}

.preset-title-icon>.order-svg {
    width: 26px;
    height: 26px;
    /* margin: -8px; */
    margin-top: -2px;

    polygon {
        stroke-width: 2.1px;
    }
}

.preset-title-icon>.stoppedTruck {
    /* width: 26px;
    height: 26px; */
    margin-top: 3px;
    margin-right: .4rem;
}

.timeline-filter-icon>.stoppedTruck {
    /* width: 26px;
    height: 26px; */
    margin-top: -2px;
}

.timeline-filter-icon>.order-svg {
    width: 26px;
    height: 26px;
    margin: -8px;

    polygon {
        stroke-width: 2.1px;
    }
}

.filter-tag {
    gap: 5px;
    align-items: center;
    max-width: 150px;
    overflow: ellipsis;
    justify-content: start !important;
    /* color:black !important; */
}

.filter-tag>abbr {
    /* width: 100%; */
    /* overflow:ellipsis; */
    font-size: .75rem !important;
}

/* .filter-modal .modal-card-body :last-child {
    margin-top: auto !important;
} */

.tags-input {
    height: fit-content !important;
    min-height: 2.25rem !important;
    width: 100% !important;
    display: flex;
    margin-bottom: .5rem;
    /* background-color: white; */
}

.tag {
    font-size: .8em !important;
}

/*Timeline*/

#timeline-window {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Toolbar */
#timeline-toolbar {
    min-height: 1rem;
    gap: 1rem;
    width: 100%;
}

/* #timeline-toolbar-orders
{
    width: -webkit-fill-available;
} */

#timeline-toolbar-power {
    width: calc(var(--timeline-truck-labels-width) + 10px);
    /* 7px is 3px for the border width of the labels and 4px for the padding on the timeline-toolbar*/
}


#timeline-window .SearchBar {
    /* width: -webkit-fill-available; */
    max-width: 400px;
    margin: 0;
}

#timeline-orders-search {
    width: 300px;
}

/* Legend */

#timeline-legend {
    gap: 0.25rem;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

#timeline-legend p {
    font-size: 0.8rem;
    /* font-weight: bold;     */
}

.timeline-legend-item {
    display: flex;
    align-items: center;
    align-content: center;
    font-size: 0.8rem;    
    padding: 0.25rem;
    cursor: default;
}

.timeline-legend-item:hover {
    background-color: #f0f0f0;
}

.timeline-legend-item>.material-symbols-sharp {
    font-size: 1rem;
    margin-right: .5rem;
}

.timeline-legend-item>.material-symbols-sharp.started {
    color: var(--load-color-started);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.timeline-legend-item>.material-symbols-sharp.dispatched {
    color: var(--load-color-dispatched);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.timeline-legend-item>.material-symbols-sharp.planned {
    color: var(--load-color-planned);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.timeline-legend-item>.material-symbols-sharp.recommended {
    color: var(--load-color-recommended);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.timeline-legend-item>.material-symbols-sharp.deadhead {
    color: var(--load-color-deadhead);
    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.timeline-legend-item>.material-symbols-sharp.excluded {
    /* color: var(--load-color-dispatched); */

    text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}

.excluded {
    background-image: linear-gradient(45deg, transparent 40%, black 40%, black 50%, transparent 50%, transparent 90%, black 90%, black 100%);
    background-size: 10px 10px;
}

.is-upcoming-ddd-cell {
    background-color: lightgoldenrodyellow !important;
}

.timeline-legend-item .bar {
    height: 1rem;
    width: 2.25rem;
    border: var(--timeline-border);
    margin-right: .5rem;
    display: flex;
    align-items: center;
}

.timeline-legend-item .bar.started {
    background-color: var(--load-color-started);
}

.timeline-legend-item .bar.dispatched {
    background-color: var(--load-color-dispatched);
}

.timeline-legend-item .bar.planned {
    background-color: var(--load-color-planned);
}

.timeline-legend-item .bar.recommended {
    background-color: var(--load-color-recommended);
}

.timeline-legend-item .bar.deadhead {
    height: 0.75rem;
    background-color: var(--load-color-deadhead);
}

.timeline-legend-item .bar .material-symbols-sharp {
    font-size: 0.7rem;
    color: white;
    font-variation-settings: 'FILL' 1,
        'wght' 400,
        'GRAD' 100,
        'opsz' 400;
}

/* linear-gradient(45deg, #000 25%, transparent 25%, transparent 50%, #000 50%, #000 75%, transparent 75%, #fff); */

#timeline {
    overflow: scroll;
    /* width: 100%; */
    height: 100%;
    position: relative;
    display: grid;
    grid-template-columns: var(--timeline-truck-labels-width) auto;
    padding: 0px;
}

#timeline-background {
    width: max-content;
    height: 100%;
    position: absolute;
    margin-left: var(--timeline-truck-labels-width);
    /* THIS .75rem shift WAS REMOVED, leaving the comment in case this happens again - the .75rem is to match the margin on the container (from column class) that is being ignored from this being position absolute*/
    top: 0;
    z-index: 50;
    overflow: hidden;
}

#timeline-content {
    z-index: 100;
    grid-column: 2;
    position: static;
    /* margin-top: 2rem; */
}

#timeline-dates-header {
    width: calc(100% + 3px);
    height: 2rem;
    z-index: 100;
    position: sticky;
    top: 0px;
    background-color: white;
    margin-bottom: .25rem;
    margin-left: -3px;
    display: flex;
    z-index: 200;
    border-left: 3px solid #4a4a4a;
}

.timeline-day-header {
    display: flex;
    justify-content: space-between;
    align-content: center;
    border-bottom: 3px solid #4a4a4a;
    flex-direction: column;
}

.timeline-header-date {
    /* width: 100%; */

    align-self: center;

    font-size: .9rem;
}

.timeline-date-time-mark {
    height: 25%;
    width: .05rem;
    background-color: rgb(197, 196, 196);
    position: absolute;
    bottom: 3px;
}

.timeline-date-time-mark:last-child {
    height: 100%;
    bottom: 0;
}

.timeline-date-time-mark.bold {
    width: .05rem;
    background-color: black;
}

.timeline-date-time-mark-label {
    position: absolute;
    bottom: 0;
    font-size: .5rem;
    padding-left: .1rem;
    font-weight: bold;
    z-index: 1000;
    /* width: 100%;
    text-align: center;
    font-size: .8rem;
    color: #666;  */
}

/* .timeline-day-header:not(:first-child) {
    border-left: 1px solid black;
}

.timeline-day-header:last-child
{
    border-right: 1px solid black;
} */

.timeline-day-block {
    height: 100%;
    display: inline-block;
    text-align: center;
    font-size: 0.8rem;
    color: #666;
    /*     padding-top: 0.5rem; 
    padding-bottom: 0.5rem;   */
}

.timeline-day-time-mark {
    height: 100%;
    width: .05rem;
    background-color: rgb(197, 196, 196);
    position: absolute;
    top: 0;
}

.timeline-day-time-mark.bold {
    width: .05rem;
    background-color: black;
}

#timeline-truck-count {
    height: 1.5rem;
    display: flex;
    gap: 6px;
    padding: 0 .5rem;
    font-size: .8rem;
    align-items: center;
    justify-content: center;
    /* grid-column: 1; */
    /* padding: .25rem; */
}

#timeline-truck-labels {
    grid-column: 1;
    display: block;
    position: sticky;
    left: 0px;
    /* padding-top: 2.25rem; */
    padding-top: 0.75rem;
    z-index: 100;
    background-color: white;
    z-index: 200;
    border-right: 3px solid #4a4a4a;
    padding-bottom: 1rem;
}

#current-time-marker {
    height: 100%;
    width: .2rem;
    background-color: red;
    position: absolute;
    top: 0;
    left: 0;
    /* position: sticky; */
}

/*Load Blocks*/
.timeline-load {
    /* height: 30px; */
    height: var(--timeline-truck-load-height);
    /* width: 200px; */
    /* border: 2px solid black; */
    z-index: 100;
    position: relative;
    font-size: .8rem;
    overflow: hidden;
    white-space: nowrap;
    padding: 0;
    display: flex;
    align-items: center;

    color: white;
    /*justify-content: center; */
}

.timeline-load:hover {
    z-index: 1000;
}

.timeline-load {
    cursor: pointer;
}

/* 
.timeline-load-remaining {
    cursor: pointer;
} */


.timeline-pta-container {
    cursor: default;
}

.timeline-pta-break-bar {
    position: absolute;
    height: calc(var(--timeline-truck-load-height) / 2);
    top: calc(var(--timeline-truck-load-height) / 4);
    background: rgba(231, 76, 60, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
}
.timeline-pta-break-bar:hover {
    color: #fff;
    background: rgba(231, 77, 60, 0.75);
    z-index: 10;
}

.timeline-pta-line {
    position: absolute;
    height: var(--timeline-truck-load-height);
    width: 2px;
    background-color: black;
}

.timeline-highlighted-row .timeline-pta-hours {
    color: unset;
}

.timeline-pta-hours {
    color: transparent;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: absolute;
    top: 0;
    font-size: 0.6em;
    line-height: 1.1;
    white-space: nowrap;
    height: 100%;
    z-index: 1;
}

.timeline-hometime-bar{
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 100%;
    background: rgba(76, 175, 80, 0.3);
    cursor: default;
    font-size: 0.8rem;
}

.timeline-hometime-bar .material-symbols-sharp:not(.hometime-risk-fire):not(.hometime-risk-home) {
    font-size: 1.25rem !important;
}

.timeline-load.timeline-load-cutoff-start>.timeline-load-deadhead {
    background: linear-gradient(to right, rgba(226, 128, 0, 0), var(--load-color-deadhead) 2rem);
    /* padding-left: 2rem; */
}

.timeline-load-started>.timeline-load-remaining {
    background-color: var(--load-color-started);
}

.timeline-load-started.timeline-load-cutoff-end>.timeline-load-remaining {
    background: linear-gradient(to left, rgba(226, 128, 0, 0), var(--load-color-started) 2rem);
}

.timeline-load-started.timeline-load-cutoff-start>.timeline-load-remaining:first-child {
    background: linear-gradient(to right, rgba(226, 128, 0, 0), var(--load-color-started) 2rem);
    padding-left: 2rem;
}

.timeline-load-planned>.timeline-load-remaining {
    background-color: var(--load-color-planned);
}

.timeline-load-planned.timeline-load-cutoff-end>.timeline-load-remaining {
    background: linear-gradient(to left, rgba(226, 128, 0, 0), var(--load-color-planned) 2rem);
}

.timeline-load-planned.timeline-load-cutoff-start>.timeline-load-remaining:first-child {
    background: linear-gradient(to right, rgba(226, 128, 0, 0), var(--load-color-planned) 2rem);
    padding-left: 2rem;
}

.timeline-load-dispatched>.timeline-load-remaining {
    background-color: var(--load-color-dispatched);
}

.timeline-load-dispatched.timeline-load-cutoff-end>.timeline-load-remaining {
    background: linear-gradient(to left, rgba(226, 128, 0, 0), var(--load-color-dispatched) 2rem);
}

.timeline-load-dispatched.timeline-load-cutoff-start>.timeline-load-remaining:first-child {
    background: linear-gradient(to right, rgba(226, 128, 0, 0), var(--load-color-dispatched) 2rem);
    padding-left: 2rem;
}

.timeline-load-recommended>.timeline-load-remaining {
    background-color: var(--load-color-recommended);
    /* background: linear-gradient(to right, rgb(226, 128, 0), rgba(226, 128, 0, 0)); */
}


.overdue {

    border: 2px solid red !important;
    /* https://stripesgenerator.com/ */
    /* 16 size transparent */
    /* 4 size red */
    background-image: linear-gradient(45deg, transparent 40%, red 40%, red 50%, transparent 50%, transparent 90%, red 90%, red 100%);
    background-size: 10px 10px;

}

.late {
    border: 2px solid red !important;
}

.exception {
    background-color: gray !important;
    border: 2px solid black !important;
    /* https://stripesgenerator.com/ */
    /* 16 size transparent */
    /* 4 size red */
    background-image: linear-gradient(45deg, transparent 40%, black 40%, black 50%, transparent 50%, transparent 90%, black 90%, black 100%);
    background-size: 10px 10px;

}


.timeline-load-recommended.timeline-load-cutoff-end>.timeline-load-remaining {
    background: linear-gradient(to left, rgba(226, 128, 0, 0), var(--load-color-recommended) 1rem);
}

.timeline-load-recommended.timeline-load-cutoff-start>.timeline-load-remaining:first-child {
    background: linear-gradient(to right, rgba(226, 128, 0, 0), var(--load-color-recommended) 1rem);
    padding-left: 1rem;
}

.timeline-load-cutoff-end:not(.timeline-selected-load)>.timeline-load-remaining {
    border-image: linear-gradient(to left, rgba(226, 128, 0, 0), rgb(0, 0, 0) 1rem) 1;
    border-right-width: 0;
}

.timeline-load-cutoff-end.timeline-selected-load>.timeline-load-remaining {
    border-color: white;
    border-right-width: 0;
}

.timeline-load-cutoff-start:not(.timeline-selected-load)>div:first-child {
    border-image: linear-gradient(to right, rgba(226, 128, 0, 0), rgb(0, 0, 0) 1rem) 1;
    border-left-width: 0;
}

.timeline-load-cutoff-start.timeline-selected-load>.timeline-load-remaining {
    border-color: white;
    border-left-width: 0;
}

.timeline-load-ptao {
    background-color: var(--load-color-ptao) !important;
    /* var(--load-color-ptao)!important; */
    /* border: 1px solid black!important; */
    /* https://stripesgenerator.com/ */
    /* 16 size transparent */
    /* 4 size red */
    /* background-image: linear-gradient(45deg, transparent 40%, black 40%, black 50%, transparent 50%, transparent 90%, black 90%, black 100%); */
    /* background-size: 10px 10px; */
    border: none !important;
    display: flex;
    align-items: center;
    /* justify-content: center; */
    height: 100%;
    overflow: hidden;
    cursor: default;
    padding-left: 0.1rem;
    font-size: 0.8rem;
}

.timeline-load-excluded > .timeline-load-remaining
{
    background-image: linear-gradient(45deg, transparent 40%, black 40%, black 50%, transparent 50%, transparent 90%, black 90%, black 100%);
    background-size: 10px 10px;
}

.timeline-truck-loads-rec > .timeline-load-ptao {
    color: transparent;
}

.timeline-load-ptao .material-symbols-sharp {
    font-size: 1.25rem !important;
}


.timeline-load-deadhead {
    background-color: var(--load-color-deadhead);
    height: 50%;
    border: var(--timeline-border);
    border-right-width: 0;
    flex-shrink: 0;
}

.timeline-load-remaining {
    padding: 0 .25rem;
    border: var(--timeline-border);
    /* width: 100%; */
    flex-grow: 1;
    height: 100%;
    font-size: .8rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.timeline-load-remaining>.icon>span {
    font-size: 1.2rem;


}

.timeline-selected-load>div {
    /* > .timeline-load-remaining, .timeline-selected-load > .timeline-load-deadhead{ */
    /* box-shadow: 0 0 1rem blue; */
    /* rgba(0, 0, 0, 0.8); */
    /* border-color: #3390ff;
    border-width: 3px; */
    /* var(--selected-color); */
    font-weight: bold;
    border-color: white !important;
}

.timeline-truck-label {

    margin-top: var(--timeline-truck-row-upper-margin);
    height: var(--timeline-truck-label-height);
    /*this field may be programmatically changed by timelineHandling*/
    display: flex;
    align-items: center;
    z-index: 100;
    justify-content: space-between;
    padding-left: .5rem;
}

.timeline-truck-label:hover {
    cursor: pointer;
}

.timeline-truck-info-label {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.timeline-truck-info-id {
    display: flex;
    align-items: center;
}

.timeline-truck-info-details .tags {
    font-size: 0.75rem;
}

/* .timeline-truck-info-details .tag.OO {
    background-color: #e0f7fa;
    color: #006064;
}
.timeline-truck-info-details .tag.LP {
    background-color: #fff3e0;
    color: #e65100;
}
.timeline-truck-info-details .tag.CO {
    background-color: #e8f5e9; 
    color: #1b5e20;
} */

.timeline-truck-label:not(:last-child) {
    margin-bottom: var(--timeline-truck-row-lower-margin);
}

.timeline-truck-row-label {
    font-size: .8rem;
    /* align-items: right; */
    display: flex;
    align-items: end;
    flex-direction: column;
    padding-right: 0.25rem;
}

.timeline-truck-row-label>span {
    height: var(--timeline-truck-load-height);
    display: flex;
    align-items: center;
}

.timeline-truck-loads {
    display: flex;
    align-items: center;
    z-index: 100;
    height: var(--timeline-truck-load-height);
    /*this field may be programmatically changed by timelineHandling*/
}

/* 
.timeline-truck-loads:hover {
    cursor: pointer;
} */

.timeline-highlighted-row {
    background-color: #b8b8b894;
    /* #fff1b1be; */
}

.timeline-selected-row {
    background-color: var(--selected-color);
}

.timeline-truck-wrapper:not(:last-child) {
    margin-bottom: var(--timeline-truck-row-lower-margin);
    margin-top: var(--timeline-truck-row-upper-margin);
}


#timeline-recalc-algo>svg {
    height: .8rem;
    width: .8rem;
    fill: white;
    margin-right: .25rem;
}

#timeline-recalc-algo>.btn-loading {
    position: static !important;
    margin-left: .5rem;
}

#timeline-recalc-algo>.btn-loading.is-loading::after {
    position: static !important;

}

/*Hiding remove x on All Markets tag*/
.tag[data-value="All Markets"]>.delete {
    display: none;
}

.tag[data-value="All States"]>.delete {
    display: none;
}

.tag[data-value="All DMs"]>.delete {
    display: none;
}

.hometime-risk {
    width: fit-content;
    /* background-color: hsl(347, 90%, 96%) !important; */
    /* border-width: 1px !important;
    border-color: hsl(348, 100%, 61%)   !important; */
    height: fit-content !important;
    margin-top: .2rem;
    margin-right: 0.25rem;
}

.hometime-risk-home {
    position: absolute;
    font-size:.9rem;
    /* color:black; */
}

.hometime-risk-fire {
    position: absolute;
    /* margin-left: .75rem; */
    margin-bottom: .85rem;
    font-size:1.4rem;
    color:red;
    opacity: .6;
    font-variation-settings: 'FILL' 1,
    'wght' 100,
    'GRAD' 0,
    'opsz' 24
    /* animation: flicker 1.5s infinite; */
}